import java.util.Scanner;

/**
 * 7. 3 的倍数
 * https://www.lanqiao.cn/problems/2371/learning/?page=1&first_category_id=1&second_category_id=3&tag_relation=intersection&tags=%E7%9C%81%E8%B5%9B,2021&sort=pass_rate&asc=0
 */
public class Main11 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        int[] arr = new int[3];
        for(int i = 0;i < 3;i++) {
            arr[i] = scan.nextInt();
        }
        for(int i = 0;i < 3;i++) {
            for(int j = i + 1;j < 3;j++) {
                if((arr[i] + arr[j]) % 3 == 0) {
                    System.out.println("yes");
                    return;
                }
            }
        }
        System.out.println("no");
        scan.close();
    }
}
